from rest_framework import serializers
from .models import *


# 用户表的序列化器
class Yhser(serializers.ModelSerializer):
    class Meta:
        model = Yh
        fields = "__all__"


# 小说表的序列化器
class Xsser(serializers.ModelSerializer):
    class Meta:
        model = Xs
        fields = "__all__"